Skip to main content
Version: 6.0.0-beta.3 - 6.0.0-beta.4

unfreezeBalanceV2

The interface used to cancel the staked resources. It can specify the number of canceled stakes, but the number cannot exceed the number that can be canceled. The delegated resources cannot be canceled. (v5.1.0 new interface)

Usage

const transaction = await tronWeb.transactionBuilder.unfreezeBalanceV2(amount, resource, address, options);

Parameters

ArgumentDescriptionType
amountthe amount of assets to be frozen (sun), larger than 0Integer
resourceOptional. The frozen asset type. Default is BANDWIDTH.BANDWIDTH or ENERGY
addressthe account address of the frozen asset (base58 or hex)String
optionsPermission id for multi-signature and block header for contract block header info.{ permissionId: number, blockHeader: ... }

Returns

Object

Example

> const transaction = await tronWeb.transactionBuilder.unfreezeBalanceV2(10e6, 'BANDWIDTH', 'ownerAddress')